package com.sifour.entity;

import com.sifour.IF.FlyBehavior;
import com.sifour.IF.SwimBehavior;

public abstract class Bird {

    protected FlyBehavior flyBehavior;
    protected SwimBehavior swimBehavior;

    public Bird() {

    }

    public void display() {

    }

    public void fly() {
        flyBehavior.fly();
    }

    public void swim() {
        swimBehavior.swim();
    }

}
